package com.woniu.zsd.user.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.dto.LogUserDto;
import com.woniu.dto.UserInfoDto;
import com.woniu.form.LoginByPhoneForm;
import com.woniu.form.LoginByUsernameForm;
import com.woniu.form.UpdatePhoneForm;
import com.woniu.form.UserRegisterForm;
import com.woniu.zsd.user.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

public interface IUserService extends IService<User> {

    void sendRegisterCode(String phone);

    void register(UserRegisterForm userRegisterForm)throws Exception;

    LogUserDto loginByPhoneAndCode(LoginByPhoneForm lbpf);

    LogUserDto loginByUsernameAndPassword(LoginByUsernameForm lbuf);

    void sendLoginCode(String phone);

    User updateUserPhone(UpdatePhoneForm upf, String id);

    void banUser(String id);
}